script="""
# 导入异步文件操作库
import aiofiles

# 定义异步写入文件函数
async def write_text(file_path: str, text: str):
    # 异步打开文件
    async with aiofiles.open(file_path, "w") as f:
        # 异步写入文本
        await f.write(text)


async def main():
    # 文件路径
    file_path = "hello_world.txt"
    # 待写入文本
    text = "hello world"
    # 调用异步写入文件函数
    await write_text(file_path, text)
if __name__ == "__main__":
    import asyncio
    asyncio.run(main())
"""

if __name__ == '__main__':
    exec(script)